<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
</head>
<body>
		<div id="app">
			<button type="button" @click="run($event)">测试</button>
			
			<div @click.self="msg1()">我是你爷
				<div @click.self="msg2()">我是你爸
					<div @click.self="msg3()">我是小弟</div>
				</div>
			</div>
			<a href="http://www.baidu.com" @click.prevent="demo()">lianjie</a>
			<button type="button" @click.once="demo()">触发</button>
		</div>
		
		
		<script src="js/v2.6.10/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let myApp = new Vue({
				el:'#app',
				data:{},
				methods:{
					run(ev){
						console.log(ev.target)
					},
					msg1(){
						console.log('ye')
					},
					msg2(){
						console.log('yeba')
					},
					msg3(){
						console.log('dd')
					},
					demo(){
						alert('chufa')
					}
				}
			})
			
			
		</script>
</body>
</html>